import { LibResolver } from '../types'

const notComponents = [
  'cloneFC',
  'createFC',
  'createForm',
  'createModalAPI',
  'createModalAPI',
  'modalConflict',
  'modalStore',
  'uniqueId',
  'uniqueId',
  'useForcedUpdate',
  'useIOControl',
  'usePickerProps',
  'useSelectionFieldProps',
  'useSize',
  'useTextFieldProps',
  'useThrottleFn',
  'useTouch',
  'useTween',
];

export const FexdMobileResolver: LibResolver = {
  libName: '@fexd/mobile',
  replaceOldImport: false,
  camel2DashComponentName: false,
  style(name) {
    let styleDir = name
    for (const item of notComponents) {
      if (item === name) {
        return false;
      }
    }
    return `@fexd/mobile/es/exports/${styleDir}/style.css`
  }
}

